package com.mystudy.soundsystem;

import org.springframework.stereotype.Component;

/**
 * @author skykiller create on 2019/2/1 20:28
 * @version 1.0
 */
@Component(value = "lonelyHeartClub")
public class SgtPeppers implements CompactDisc {

    private String title = "Sgt. Peppers Lonely Hearts Club Band";

    private String artist = "The Beatles";

    @Override
    public void play() {
        System.out.println("Playing " + title + " by " + artist);
    }
}
